package com.hanggold.springboot.lesson4;

import com.hanggold.springboot.lesson4.cls.InnoClass;
import org.springframework.core.type.classreading.CachingMetadataReaderFactory;
import org.springframework.core.type.classreading.MetadataReader;
import org.springframework.core.type.classreading.MetadataReaderFactory;

import java.io.IOException;

public class SpringMetaDataTest {

    public static void main(String[] args) throws IOException {

        MetadataReaderFactory metadataReaderFactory = new CachingMetadataReaderFactory();


        MetadataReader metadataReader =  metadataReaderFactory.getMetadataReader(SpringMetaDataTest.class.getName());


        System.out.println(metadataReader.getClassMetadata().isAbstract());


        InnoClass.A a = new InnoClass.A();

        System.out.println(a.getClass().getName());




    }


}
